<?php

declare(strict_types=1);

namespace Modules\Reservation\Models;

use Catch\Base\CatchModel as Model;

/**
 * @property $id
 * @property $customer_id
 * @property $teacher_id
 * @property $hours
 * @property $status
 * @property $subject_config_id
 * @property $lesson_date
 * @property $lesson_time_id
 * @property $cancel_id
 * @property $cancel_time
 * @property $reserve_time
 * @property $creator_id
 * @property $created_at
 * @property $updated_at
 * @property $deleted_at
*/
class Reservation extends Model
{
    const CREATED_AT = 'created_at'; // 创建时间
    const UPDATED_AT = 'updated_at'; // 更新时间

    public $timestamps = true;
    public $dateFormat = "U";

    protected $table = 'reservation';

    protected $fillable = [ 'id', 'customer_id', 'teacher_id', 'lessons', 'status', 'subject_id', 'lesson_date', 'lesson_time_id', 'cancel_name', 'cancel_time', 'reserve_time', 'reserve_name', 'creator_id', 'created_at', 'updated_at', 'deleted_at' ];

    /**
     * @var array
     */
//    protected array $fields = ['id','customer_id','teacher_id','hours','status','subject_config_id','lesson_date','lesson_time_id','cancel_id','cancel_time','reserve_time','created_at','updated_at'];

    /**
     * @var array
     */
//    protected array $form = ['customer_id','teacher_id','hours','status','subject_config_id','lesson_date','lesson_time_id','cancel_id','cancel_time','reserve_time'];

    /**
     * @var array
     */
    public array $searchable = [

    ];


}
